doctype html
html
  head
    title= title
    script(src="/assets/js/jquery-1.10.2.js")
    script(src="/assets/js/bootstrap.min.js")
    script(src="/assets/js/jquery.metisMenu.js")
    script(src="/assets/js/morris/raphael-2.1.0.min.js")
    script(src="/assets/js/morris/morris.js")
    link(rel="stylesheet",href="/assets/css/bootstrap.css")
    link(rel="stylesheet",href="/assets/css/font-awesome.css")
    link(rel="stylesheet",href="/assets/js/morris/morris-0.4.3.min.css")
    link(rel="stylesheet",href="/assets/css/custom-styles.css")
  body
    div#wapper
      nav.navbar.navbar-default.top-navbar(role="navigation")
        div.navbar-header
            button(type="button",data-toggle="collapse",data-target=".sidebar-collapse").navbar-toggle
              span.sr-only Toggle navigation
            a.navbar-brand(href="/")
             i.fa.fa-comment
               strong 叉车配件管理系统
        ul.nav.navbar-top.navbar-right
            //
             li.dropdown
              a.dropdown-toggle(href="#",data-toggle="dropdown",aria-expanded="false")
                i.fa.fa-envelope.fa-fw
                i.fa.fa-caret-down
               ul.dropdown-menu
                   li
                    a(href="#")
                      div
                          strong JONE
                      div XXXXXXXXXXXXXXX
                    li.divider
            li.dropdown
              a.dropdown-toggle(href="#",data-toggle="dropdown",aria-expanded="false")
               i.fa.fa-user.fa-fw
               i.fa.fa-caret-down
              ul.dropdown-menu.dropdown-user
               if (!login)
                li
                  a(href="/login") Login
                      i.fa.fa-sign-in.fa-fw
               if (login)
                li
                 a(href="/userprofile").fa.fa-user.fa-fw User Profile
                li
                 a(href="#").fa.fa-gear.fa-fw Settings
                li.divider
                li
                 a(href="/logout") Logout
                   i.fa.fa-sign-out.fa-fw

      nav.navbar-default.navbar-side(role="navigation")
        div.sidebar-collapse
          ul.nav#main-menu
           if links
            for link in links
              li
                a(href="#{link.link}")
                 i.fa.fa-qrcode
                 #{link.name}


       block content
